/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * EditDepartment.java
 *
 * Created on Oct 28, 2012, 11:33:03 AM
 */
package thienphuc.patient.screen.department;

import java.awt.Toolkit;

/**
 *
 * @author QUOCDAT
 */
public class EditDepartment extends javax.swing.JDialog {

    /** Creates new form EditDepartment */
    public EditDepartment(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btnGroupStatus = new javax.swing.ButtonGroup();
        panelDepartmentInfo = new javax.swing.JPanel();
        lblDepartmentId = new javax.swing.JLabel();
        txtDepartmentId = new javax.swing.JTextField();
        lblDepartmentName = new javax.swing.JLabel();
        txtDepartmentName = new javax.swing.JTextField();
        lblDescription = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        txtDescription = new javax.swing.JTextArea();
        btnUpdate = new javax.swing.JButton();
        btnCancel = new javax.swing.JButton();
        lblStatus = new javax.swing.JLabel();
        rdBtnActive = new javax.swing.JRadioButton();
        rdBtnNonActive = new javax.swing.JRadioButton();
        lblImage = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("thienphuc/patient/screen/department/resources/EditDepartment"); // NOI18N
        setTitle(bundle.getString("thienphuc.patient.screen.department.resources.EditDepartment.dlgEditDepartment")); // NOI18N
        setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("/thienphuc/patient/images/icons16x16/hospital.png")));
        setName("Form"); // NOI18N
        setResizable(false);

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(thienphuc.patient.main.ThienPhucPatientApp.class).getContext().getResourceMap(EditDepartment.class); // NOI18N
        panelDepartmentInfo.setBorder(javax.swing.BorderFactory.createTitledBorder(null, bundle.getString("thienphuc.patient.screen.department.resources.EditDepartment.panelDepartmentInfo"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("panelDepartmentInfo.border.titleFont"))); // NOI18N
        panelDepartmentInfo.setName("panelDepartmentInfo"); // NOI18N

        lblDepartmentId.setText(bundle.getString("thienphuc.patient.screen.department.resources.EditDepartment.lblDepartmentId")); // NOI18N
        lblDepartmentId.setName("lblDepartmentId"); // NOI18N
        lblDepartmentId.setPreferredSize(new java.awt.Dimension(100, 14));

        txtDepartmentId.setEnabled(false);
        txtDepartmentId.setName("txtDepartmentId"); // NOI18N

        lblDepartmentName.setText(bundle.getString("thienphuc.patient.screen.department.resources.EditDepartment.lblDepartmentName")); // NOI18N
        lblDepartmentName.setName("lblDepartmentName"); // NOI18N
        lblDepartmentName.setPreferredSize(new java.awt.Dimension(100, 14));

        txtDepartmentName.setName("txtDepartmentName"); // NOI18N

        lblDescription.setText(bundle.getString("thienphuc.patient.screen.department.resources.EditDepartment.lblDescription")); // NOI18N
        lblDescription.setName("lblDescription"); // NOI18N
        lblDescription.setPreferredSize(new java.awt.Dimension(100, 14));

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        txtDescription.setColumns(20);
        txtDescription.setRows(5);
        txtDescription.setName("txtDescription"); // NOI18N
        jScrollPane1.setViewportView(txtDescription);

        btnUpdate.setIcon(resourceMap.getIcon("btnUpdate.icon")); // NOI18N
        btnUpdate.setText(bundle.getString("thienphuc.patient.screen.department.resources.EditDepartment.btnUpdate")); // NOI18N
        btnUpdate.setName("btnUpdate"); // NOI18N

        btnCancel.setIcon(resourceMap.getIcon("btnCancel.icon")); // NOI18N
        btnCancel.setText(bundle.getString("thienphuc.patient.screen.department.resources.EditDepartment.btnCancel")); // NOI18N
        btnCancel.setName("btnCancel"); // NOI18N

        lblStatus.setText(bundle.getString("thienphuc.patient.screen.department.resources.EditDepartment.lblStatus")); // NOI18N
        lblStatus.setName("lblStatus"); // NOI18N

        btnGroupStatus.add(rdBtnActive);
        rdBtnActive.setSelected(true);
        rdBtnActive.setText(bundle.getString("thienphuc.patient.screen.department.resources.EditDepartment.rdBtnActive")); // NOI18N
        rdBtnActive.setName("rdBtnActive"); // NOI18N

        btnGroupStatus.add(rdBtnNonActive);
        rdBtnNonActive.setText(bundle.getString("thienphuc.patient.screen.department.resources.EditDepartment.rdBtnNonActive")); // NOI18N
        rdBtnNonActive.setName("rdBtnNonActive"); // NOI18N

        javax.swing.GroupLayout panelDepartmentInfoLayout = new javax.swing.GroupLayout(panelDepartmentInfo);
        panelDepartmentInfo.setLayout(panelDepartmentInfoLayout);
        panelDepartmentInfoLayout.setHorizontalGroup(
            panelDepartmentInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelDepartmentInfoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelDepartmentInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelDepartmentInfoLayout.createSequentialGroup()
                        .addComponent(lblDepartmentId, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtDepartmentId, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(panelDepartmentInfoLayout.createSequentialGroup()
                        .addComponent(lblDepartmentName, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtDepartmentName, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(panelDepartmentInfoLayout.createSequentialGroup()
                        .addGroup(panelDepartmentInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(lblStatus, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lblDescription, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(panelDepartmentInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(panelDepartmentInfoLayout.createSequentialGroup()
                                .addComponent(rdBtnActive)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 16, Short.MAX_VALUE)
                                .addComponent(rdBtnNonActive))
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelDepartmentInfoLayout.createSequentialGroup()
                        .addComponent(btnUpdate)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        panelDepartmentInfoLayout.setVerticalGroup(
            panelDepartmentInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelDepartmentInfoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelDepartmentInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblDepartmentId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtDepartmentId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelDepartmentInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblDepartmentName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtDepartmentName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelDepartmentInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDescription, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelDepartmentInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblStatus)
                    .addGroup(panelDepartmentInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(rdBtnActive)
                        .addComponent(rdBtnNonActive)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(panelDepartmentInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnCancel)
                    .addComponent(btnUpdate))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        lblImage.setIcon(resourceMap.getIcon("lblImage.icon")); // NOI18N
        lblImage.setText(resourceMap.getString("lblImage.text")); // NOI18N
        lblImage.setName("lblImage"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(panelDepartmentInfo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblImage)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addGap(19, 19, 19)
                        .addComponent(lblImage, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(panelDepartmentInfo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-678)/2, (screenSize.height-314)/2, 678, 314);
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCancel;
    private javax.swing.ButtonGroup btnGroupStatus;
    private javax.swing.JButton btnUpdate;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lblDepartmentId;
    private javax.swing.JLabel lblDepartmentName;
    private javax.swing.JLabel lblDescription;
    private javax.swing.JLabel lblImage;
    private javax.swing.JLabel lblStatus;
    private javax.swing.JPanel panelDepartmentInfo;
    private javax.swing.JRadioButton rdBtnActive;
    private javax.swing.JRadioButton rdBtnNonActive;
    private javax.swing.JTextField txtDepartmentId;
    private javax.swing.JTextField txtDepartmentName;
    private javax.swing.JTextArea txtDescription;
    // End of variables declaration//GEN-END:variables
}
